/*
obs-auto-subtitle
 Copyright (C) 2019-2020 Yibai Zhang

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; If not, see <https://www.gnu.org/licenses/>
*/

#ifndef OBS_AUTOSUB_ASR_BUILDER_BASE_H
#define OBS_AUTOSUB_ASR_BUILDER_BASE_H

// Hint: must include this first!
// https://github.com/simd-everywhere/simde/issues/459
#include "../../vendor/ASR/ASRBase.h"
#include "PropBuilderBase.h"

class ASRBuilderBase : public PropBuilderBase<ASRBase> {
public:
	QString getFromLang() { return fromLang; }
	QString getToLang() { return toLang; }

protected:
	QString fromLang;
	QString toLang;
};

#ifndef _PROP
#define _PROP(name) "autosub_filter_asr_" name
#endif
#define ASRBuilders (*BuilderRegister<ASRBase>::builders)

typedef BuilderRegister<ASRBase> ASRBuilderRegister;

#endif
